<?php /* Smarty version Smarty-3.0.8, created on 2015-10-15 10:47:01
         compiled from "tpl/header.html" */ ?>
<?php /*%%SmartyHeaderCode:651910735561f13a50b1627-97628113%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '63632103ead24d377cb3174cab2a44e025f6d46d' => 
    array (
      0 => 'tpl/header.html',
      1 => 1444876874,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '651910735561f13a50b1627-97628113',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE html>

<!------------------------------
Site Name: ytcms
Developed By: hillsdong@163.com
Date Created: 2013-11-29
Last Updated:
Copyright: yantukeji.com
-------------------------------->

<html lang="zh-CN">
<head>
	<title><?php echo $_smarty_tpl->getVariable('cms_title')->value;?>
后台管理</title>	
	<!--CSS-->
	<link rel="stylesheet" type="text/css" href="tpl/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="tpl/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" type="text/css" href="tpl/css/ytcms.css" />
	<!--Character Encoding-->
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<!--For phone or pad-->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <!--javascript-->
	<script type="text/javascript" src="tpl/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="tpl/js/bootstrap.min.js"></script>
</head>
<body>
<?php if ($_smarty_tpl->getVariable('content_only')->value!="1"){?>
	<!--Main Container - Centers Everything-->
	<div id="ytadmin_main_container">		
		<!--Header-->
		<header class="navbar navbar-default navbar-fixd-top ytadmin-nav" role="banner">
			<div class="navbar-header">
				<strong><a href="index.php" class="navbar-brand">
				
					<?php echo $_smarty_tpl->getVariable('cms_title')->value;?>

				</a></strong>
			</div>
			<nav class="navbar-collapse ytadmin-nav-collapse" role="navigation">
				<ul class="nav navbar-nav">
					<!--
					<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='comment'){?>active<?php }?>">
						<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'comment','module'=>'feedback','moudule_id'=>0),$_smarty_tpl);?>
">
						<span class="glyphicon glyphicon-list-alt"></span> 留言
						</a>
					</li>
					-->
					<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='check'){?>active<?php }?>">
						<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'index'),$_smarty_tpl);?>
">
						<span class="glyphicon glyphicon-list-alt"></span> 验证
						</a>
					</li>


					<li class="divider-vertical"></li>
					<?php  $_smarty_tpl->tpl_vars['nav_one'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('nav_result')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['nav_one']->key => $_smarty_tpl->tpl_vars['nav_one']->value){
?>

					<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='nav'&&$_smarty_tpl->getVariable('cat_id')->value==$_smarty_tpl->tpl_vars['nav_one']->value['id']){?>active<?php }?>">
						<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'nav','a'=>'index','cat_id'=>$_smarty_tpl->tpl_vars['nav_one']->value['id'],'url_id'=>$_smarty_tpl->tpl_vars['nav_one']->value['cat_url_first']['id']),$_smarty_tpl);?>
">
						<span class="glyphicon glyphicon-tasks"></span> <?php echo $_smarty_tpl->tpl_vars['nav_one']->value['name'];?>

						</a>
					</li>
					<?php }} ?>
					
					<?php if ($_SESSION['POWER']==1||$_SESSION['POWER']==3){?>
					<li class="divider-vertical"></li>
					<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='setting'){?>active<?php }?>">
						<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'setting'),$_smarty_tpl);?>
">
							<span class="glyphicon glyphicon-cog"></span> 设置
						</a>
					</li>
					<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='tools'){?>active<?php }?>">
						<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'tools'),$_smarty_tpl);?>
">
							<span class="glyphicon glyphicon-wrench"></span> 工具
						</a>
					</li>
					<?php }?>


				</ul>
				<?php if ($_SESSION['POWER']==3){?>
  				<ul class="nav navbar-nav">
  					<li class="divider-vertical"></li>
			        <li class="dropdown">
			          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			          	<span class="glyphicon glyphicon-tower"></span> 建站<span class="caret"></span>
			          </a>
			          <ul class="dropdown-menu" role="menu">
						<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='article'){?>active<?php }?>"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'article'),$_smarty_tpl);?>
">文章</a></li>
						<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='picture'){?>active<?php }?>"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'picture'),$_smarty_tpl);?>
">相册</a></li>
						<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='page'){?>active<?php }?>"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page'),$_smarty_tpl);?>
">专题</a></li>
						<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='url'){?>active<?php }?>"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'url'),$_smarty_tpl);?>
">链接</a></li>
						<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='comment'){?>active<?php }?>"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'comment'),$_smarty_tpl);?>
">留言</a></li>
						<li class="<?php if ($_smarty_tpl->getVariable('nav_name')->value=='category'){?>active<?php }?>"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'category'),$_smarty_tpl);?>
">分类</a></li>
			          </ul>
			        </li>
			    </ul>
			   	<?php }?>
				<ul class="nav navbar-nav navbar-right">
					<li class=""><a target="blank" href="/<?php echo $_smarty_tpl->getVariable('url')->value;?>
/../index.php">
					<span class="glyphicon glyphicon-gift"></span> 查看前台</a></li>				
					<li class="dropdown">
				        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
				        	<span class="glyphicon glyphicon-user"></span>
				        	<?php echo $_SESSION['USER'];?>

				        	<b class="caret"></b>
				        </a>
				        <ul class="dropdown-menu">
				          <li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'log_out','need_login'=>1),$_smarty_tpl);?>
">注销</a></li>
				          <li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'log_out'),$_smarty_tpl);?>
">退出</a></li>
				        </ul>
				    </li>
				</ul>
			</nav>
		</header>
		<!--Main Content-->
		<div id="ytadmin_main_content">
			<div id="ytadmin-position" class="clearfix">
				<div id="ytadmin-position-title"><?php echo $_smarty_tpl->getVariable('page_title')->value;?>
</div>
				<ol class="breadcrumb">
				<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('breadcrumb')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
					<?php if ($_smarty_tpl->tpl_vars['item']->value['url']){?>
						<li><a href="<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</a></li>
					<?php }else{ ?>
				  		<li class="active"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</li>
				  	<?php }?>
				<?php }} ?>
				</ol>
			</div>
			<div id="ytadmin-left">
				<ul class="nav nav-pills nav-stacked">
				<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('left_nav_result')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
					<li class="<?php if ($_smarty_tpl->tpl_vars['item']->value['id']==$_smarty_tpl->getVariable('left_nav_id')->value){?>active<?php }?>">	
						<a title="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
"  href="<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['list_tab'];?>
 <?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
 </a>
					</li>
				<?php }} ?>				
				</ul>
			</div>
			<!--ytadmin-main-->
			<div id="ytadmin-main" style="min-height:700px;">
				<?php if ($_smarty_tpl->getVariable('notice')->value){?>
					<div class="alert alert-<?php echo $_smarty_tpl->getVariable('notice')->value[0];?>
"><?php echo $_smarty_tpl->getVariable('notice')->value[1];?>
</div>
				<?php }?>
<?php }?>
